package Database;

public class Reservation {
		private Event theEvent;
		private String name;
		private int space_amount;
		
		Reservation(String name, Event theEvent, int space_amount){
			this.setName(name);
			this.setTheEvent(theEvent);
			this.setSpace_amount(space_amount);
		}
		public int getSpace_amount() {
			return space_amount;
		}

		private void setSpace_amount(int space_amount) {
			this.space_amount = space_amount;
		}

		public Event getTheEvent() {
			return theEvent;
		}

		private void setTheEvent(Event theEvent) {
			this.theEvent = theEvent;
		}

		private String getName() {
			return name;
		}

		private void setName(String name) {
			this.name = name;
		}
		public String shortString(){
			return "\nRESERVATION INFO.\n-------------------\n" +
			"Reservation for " + this.getName() + "\n" +
			"Reserved seats: " + this.getSpace_amount() + "\n";
			
		}
		public String toString(){
			return "\nRESERVATION INFO.\n-------------------\n" +
			"Reservation for " + this.getName() + "\n" +
			"Reserved seats: " + this.getSpace_amount() + "\n" +
					this.getTheEvent().toString() + "\n";		
		}
}